DXS SET SPRITE TILE SIZE

Sets the height and width of the sprite tiles. All tiles form a tileset.
This command should be used only if th sprite width and height are multiples of tiles width and height.
For example, in this cas, there is a sprite with a 64x64 texture cut in tiles of 16x16 pixels. 64 / 16 = 4, the tile size is good :


In this second case, the sprite as the same texture, but it is cut in tiles of 20x20 pixels. 64 / 20 = 3.2, the tile size is not good:


the tileset size is automtically calculated from these dates, so it is possible to use DXS GET SPRITE tileSET WIDTH and DXS GET SPRITE tileSET HEIGHT.

Syntax

DXS SET SPRITE TILE SIZE Sprite Pointer, Width, height


AdvancedSPRITES : Commands Menu